package com.tiancheng.trade.payment.mapper;

import com.tiancheng.trade.payment.model.SettleMatch;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author kellen
 * @date 2024-12-09 17:10
 */
@Repository
public interface SettleMatchMapper extends TYBaseMapper<SettleMatch> {
    /**
     * 批量插入
     *
     * @param list
     * @return
     */
    int insertBatch(@Param("list") List<SettleMatch> list);

    List<Map<String,Object>> findBySubOrderIds(@Param("list") List<String> subOrderIds, @Param("settleStatus") String settleStatus);
    List<Map<String,Object>> findApprFailAndDistSecFlowDetail(@Param("list") List<String> subFlowIds);
}
